<html>
<head></head>
<body>
<form action="POST" name="myform"> 
<table border="1" bgcolor="#63639C"> 
	<tr> 
    	<td align="center" colspan="2">
			<script language="JavaScript">
			<!-- 
			function Morgcal() 
			{ 
				form = document.myform 
				LoanAmount= form.LoanAmount.value 
				DownPayment= "0" 
				AnnualInterestRate = form.InterestRate.value/100 
				Years= form.NumberOfYears.value 
				MonthRate=AnnualInterestRate/12 
				NumPayments=Years*12 
				Prin=LoanAmount-DownPayment 
				MonthPayment=Math.floor((Prin*MonthRate)/(1-Math.pow((1+MonthRate),(-1*NumPayments)))*100)/100 	
				form.NumberOfPayments.value=NumPayments 
				form.MonthlyPayment.value=MonthPayment 
			} //-->
			</script> 
    		<font color="#FFFFFF" size="2" face="arial narrow">
	    		<b>Repayment Mortgage Calculator</b> 
				<br> Enter Your Details &amp; Click the Calculate Button
		    </font>
	    </td> 
	</tr> 
    <tr> 
    	<td>
        	<table border="0" cellpadding="2"> 
				<tr> 
                	<td align="right"><font color="#FFFFFF" size="2" face="arial narrow">Loan Amount $ </font></td> 
					<td><font color="#FFFFFF" size="2" face="arial narrow">
                    		<input type="text" size="10" name="LoanAmount" value="80000" onblur="Morgcal()" onchange="Morgcal()"><br>
						</font>
                    </td>
                </tr> 
                <tr> 
                	<td align="right"><font color="#FFFFFF" size="2" face="arial narrow">Annual Interest Rate </font></td> 
                    <td><font color="#FFFFFF" size="2" face="arial narrow">
                    	<input type="text" size="3" name="InterestRate" value="6.0" onblur="Morgcal()" onchange="Morgcal()"> % <br> </font>
                    </td> 
                </tr> 
				<tr> 
                	<td align="right"><font color="#FFFFFF" size="2" face="arial narrow">Term of Loan </font></td> 
					<td><font color="#FFFFFF" size="2" face="arial narrow">
                    		<input type="text" size="3" name="NumberOfYears" value="20" onblur="Morgcal()" onchange="Morgcal()"> Years<br> </font></td> <td><font color="#FFFFFF" size="2" face="arial narrow"><input type="button" name="morgcal" value="Calculate" language="JavaScript" onclick="Morgcal()"> </font>
                    </td> 
                </tr> 
                <tr> 
					<td colspan="3"><font color="#FFFFFF"></font></td> 
				</tr> 
            </table> 
        </td> 
     </tr> 
     <tr> 
     	<td>
        	<table border="0" cellpadding="2"> 
            	<tr> 
                	<td align="right">
		            	<font color="#FFFFFF" size="2" face="arial narrow"> Number of Payments </font></td> <td><font color="#FFFFFF" size="2" face="arial narrow"><input type="text" size="7" name="NumberOfPayments"><br> </font>
                    </td> 
				</tr> 
                <tr> 
                	<td align="right"><font color="#FFFFFF" size="2" face="arial narrow">Monthly Payment $ </font></td> 
					<td><font color="#FFFFFF" size="2" face="arial narrow"><input type="text" size="7" name="MonthlyPayment"><br></font></td> 
                </tr> 
                <tr> 
                	<td align="center" colspan="2">&nbsp;</td> 
                </tr> 
            </table> 
        </td> 
	</tr> 
</table> 
</form>
</body>
</head>
</html>